package com.ds.client.actors;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;

public class BgActor extends Actor {

	TextureRegion walksFrame;
	TextureAtlas atlas;

	public BgActor(String name) {
		super(name);
		atlas = new TextureAtlas(Gdx.files.internal("res/Race.pack"));
		this.height = atlas.findRegion("Race").getTexture().getHeight();
		this.width = atlas.findRegion("Race").getTexture().getWidth();
	}

	@Override
	public void draw(SpriteBatch batch, float parentAlpha) {
		TextureRegion currentFrame = atlas.findRegion("Race");
		batch.draw(currentFrame, this.x, this.y);
	}

	@Override
	public Actor hit(float x, float y) {
		return null;
	}
	
}
